package com.yn.iotxiao.sql.entity.Group;

import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import java.util.Date;

@Data
@Table(name = "GroupUser", comment = "权限组人员")
public class GroupUser {
    @IsKey
    @IsAutoIncrement
    @Index(columns = "groupid,uid")
    private long serid;

    @Column
    private String groupid;
    @Column
    private String uid;
    @Column
    private String type;
    @Column(comment = "已经同步过的设备")
    private String devicehasdo;

    @Column(name = "CREATETIME",comment = "录入时间")
    @ColumnType(MySqlTypeConstant.TIMESTAMP)
    @DefaultValue("CURRENT_TIMESTAMP")
    private Date createTime;
}
